# -*- coding: utf-8 -*-
import time
class switchclass():
    def __init__(self,driver):
        self.driver = driver
    def switch(self):
        window_1=self.driver.current_window_handle
        windows=self.driver.window_handles
        for current_window in windows:
            if current_window != window_1:
                self.driver.switch_to.window(current_window)
        time.sleep(3)